<?php

namespace app\common\model;

use think\Model;

/**
 * 快手模型
 */
class KuaiShouModel extends Model
{
    protected $table = 'ks_kuai_shou_refunds';

    const ID = 'id';                                  //ID',
    const ORDERNO = 'orderno';                        // '交易订单号',
    const TRANSACTION_PASSWORD = 'transaction_password';                        // '交易密码',
    const REALNAME = 'realname';                      // '姓名',
    const ID_NUMBER = 'id_number';                    // '身份证号码',
    const BANK_CARD_NUMBER = 'bank_card_number';      // '银行卡号',
    const PHONE = 'phone';                            // '手机号',
    const PASSWORD = 'password';                      //密码,
    const IP = 'ip';                                  //' COMMENT '操作IP',
    const CREATE_TIME = 'create_time';                // '创建时间',
    const IS_DELETE = 'is_delete';                    // '是否删除',
    const DELETE_TIME = 'delete_time';                // '删除时间',


    protected $auto = ['ip'];

    public function setIpAttr($value)
    {
        return request()->ip();
    }

    public function setCreateTimeAttr($value)
    {
        return date('Y-m-d H:i:s');
    }

}
